package de.baumann.browser.views.behavior.base;

/**
*@author:
*@date:2020/2/18 13:39
*@discription:
*/
public class MathUtils {

    static int constrain(int amount, int low, int high) {
        return amount < low ? low : (amount > high ? high : amount);
    }

    static float constrain(float amount, float low, float high) {
        return amount < low ? low : (amount > high ? high : amount);
    }
}
